using net_work.Common.Request;
using net_work.Common.Result;
using net_work.Data.DTO.Hmw;
using net_work.Data.Entity.Hmw;
using net_work.Data.VO.Hmw;

namespace net_work.IRepository.Hmw;

public interface IBankQuestionRepository : IRepository<BankQuestion>
{
    /// <summary>
    /// 插入题库题目
    /// </summary>
    /// <param name="bankQuestionAddRequest">插入题库题目</param>
    /// <returns>题库题目ID</returns>
    Task<long> InsertAsync(BankQuestionAddRequest bankQuestionAddRequest);

    /// <summary>
    /// 更新题库题目信息
    /// </summary>
    /// <param name="bankQuestionUpdateRequest">更新题库题目信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(BankQuestionUpdateRequest bankQuestionUpdateRequest);

    /// <summary>
    /// 获取题库题目分页信息
    /// </summary>
    /// <param name="request">分页请求</param>
    /// <returns>题库题目分页信息</returns>
    Task<PagedResult<BankQuestionResult>> GetBankQuestionPagedAsync(PagedRequest request);
}